package Work4.Slay_the_Maze.Monsters;

import Work4.Slay_the_Maze.Player.*;

public abstract class Monster {
	private int hp;
	private String name;
	private boolean isdead;
	private double attrate = 1;
	private int power=0;
	public Monster(String name, int hp) {
	    this.name = name;
	    this.hp = hp;
	}
	public int getHP() {
		return hp;
	}
	public void setHP(int hP) {
		hp = hP;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public int getHp() {
		return hp;
	}
	public void setHp(int hp) {
		this.hp = hp;
	}
	public boolean isIsdead() {
		return isdead;
	}
	public void setIsdead(boolean isdead) {
		this.isdead = isdead;
	}
	public double getAttrate() {
		return attrate;
	}
	public void setAttrate(double attrate) {
		this.attrate = attrate;
	}
	public int getPower() {
		return power;
	}
	public void setPower(int power) {
		this.power = power;
	}
	public void PrintInfo() {
		System.out.println(name+":"+hp);
	}
	public abstract void Action(Player player,Monster monster);
	public abstract Monster clone();
	public abstract int attack(Player target);
}
